from task import Task
sets = []

CompuCostlist = [12, 19, 15, 20]
UpCostlist = [21, 10, 1, 106]
Mid_ddl_list = [45, 10, 8, 248]
DDL_list = [75, 71, 25, 362]
Period_list = [94, 96, 34, 378]
def GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list):
    task_set = []
    for i in range(len(CompuCostlist)):
        c_i = CompuCostlist[i]
        r_i = UpCostlist[i]
        m_i = Mid_ddl_list[i]
        d_i = DDL_list[i]
        p_i = Period_list[i]
        task = Task(c_i,r_i,m_i,d_i,p_i)
        task_set.append(task)
    return task_set
task_set0 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set0)
#--------------------------------------------------
CompuCostlist = [10, 18, 14, 16]
UpCostlist = [62, 31, 5, 9]
Mid_ddl_list = [63, 31, 6, 9]
DDL_list = [135, 309, 22, 43]
Period_list = [190, 486, 24, 47]
task_set1 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set1)
#--------------------------------------------------
CompuCostlist = [16, 20, 12, 20]
UpCostlist = [1221, 11, 6, 7]
Mid_ddl_list = [2303, 14, 6, 7]
DDL_list = [2485, 61, 27, 53]
Period_list = [3834, 62, 32, 76]
task_set2 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set2)
#--------------------------------------------------
CompuCostlist = [15, 15, 18, 13]
UpCostlist = [147, 10, 15, 5]
Mid_ddl_list = [280, 17, 41, 6]
DDL_list = [362, 53, 80, 26]
Period_list = [580, 66, 86, 39]
task_set3 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set3)
#--------------------------------------------------
CompuCostlist = [19, 18, 20, 20]
UpCostlist = [13, 80, 210, 2]
Mid_ddl_list = [13, 133, 425, 10]
DDL_list = [52, 273, 605, 32]
Period_list = [84, 470, 800, 39]
task_set4 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set4)
#--------------------------------------------------
CompuCostlist = [13, 11, 18, 19]
UpCostlist = [2, 57, 8, 28]
Mid_ddl_list = [4, 93, 13, 43]
DDL_list = [31, 105, 53, 109]
Period_list = [31, 160, 80, 112]
task_set5 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set5)

until_list = [4832352,8679960,36131616,10699260,10264800,34720]
for i in range (len(until_list)):
    until_list.append(until_list[i])